package com.zmn.plat.business.interfaces.channel;

import java.util.List;

import com.zmn.common.dto.KvDTO;
import com.zmn.plat.common.dto.channel.ChannelProductMapDRO;
import com.zmn.plat.common.dto.product.ServProductDRO;
import com.zmn.plat.model.entity.category.CategoryInfoDTO;
import com.zmn.plat.model.entity.channel.*;
import com.zmn.plat.model.entity.channel.product.map.ChannelProductMap;
import org.springframework.data.mongodb.core.aggregation.ArrayOperators;

/**
 * 渠道新
 *
 * @author xiangjunming
 * @since 2019 /08/19 16:51:39
 */
public interface ChannelProductMapBService {

    /**
     * 新增渠道产品映射
     * @param channelId
     * @param productId
     * @param relateId
     * @param channelProductParentId
     * @param channelProductSubId
     */
    void addEditChannelProductMap(Integer channelId, Integer productId, Integer relateId, String channelProductParentId, String channelProductSubId);

    /**
     * 根据渠道ID和产品ID查询渠道产品映射
     * @param channelId 渠道ID
     * @param productId 产品ID
     * @return
     */
    List<ChannelProductMapDRO> listByChannelIdAndProductId(Integer channelId, Integer productId);

    /**
     * 根据渠道ID和渠道方产品父ID和渠道方产品子ID查询产品信息
     * @param channelId
     * @param channeProductParentId
     * @param channeProductSubId
     * @return
     */
    List<ServProductDRO> listByChannelIdAndProductParentIdAndProductSubId(Integer channelId, String channeProductParentId, String channeProductSubId);
}
